load("@rules_java//java:defs.bzl", "java_library")
load("//:testing.bzl", "junit4_test_suites")

package(default_applicable_licenses = [
    "//:license",
])

java_library(
    name = "tests",
    testonly = True,
    srcs = glob(["*Test.java"]),
    deps = [
        #         "//java/com/google/testing/testsize:annotations",
        "//bundle:cel",
        "//common:cel_ast",
        "//common:container",
        "//common:options",
        "//common/testing",
        "//common/types",
        "//runtime",
        "//runtime:unknown_attributes",
        "//runtime:unknown_options",
        "//runtime/async",
        "@maven//:junit_junit",
        "@maven//:com_google_testparameterinjector_test_parameter_injector",
        "//:java_truth",
        "@cel_spec//proto/cel/expr:checked_java_proto",
        "@cel_spec//proto/cel/expr/conformance/proto3:test_all_types_java_proto",
        "@maven//:com_google_guava_guava",
    ],
)

junit4_test_suites(
    name = "test_suites",
    shard_count = 4,
    sizes = [
        "medium",
    ],
    src_dir = "src/test/java",
    deps = [":tests"],
)
